package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// 这个类用来和 UserController 形成对比，对这个类不进行拦截
@RestController
public class ArticleController {

    @RequestMapping("/art/sayhi")
    public String sayhi() {
        System.out.println("执行了 Article sayhi 方法");
        return "Article：hi,spring boot aop";
    }
}
